package cn.tutu.blockchain.machinebackups.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

public class MachineBackups {

	private String id; // id
	private String machineStatusId; // 矿机信息ID
	private String machineBackupsId1; // 备份矿机1ID
	private String machineBackupsId2; // 备份矿机1ID
	private Integer backupCount; // 备份次数
	private Date createDatetime; // 创建时间
	private Date lastUpdateDatetime; // 最后更新时间

	/**
	 * 矿机本份文件信息字段参数字段
	 */
	@NotBlank(message = "矿机ID不能为空!")
	private String machineId; // 矿机ID
	@NotBlank(message = "备份矿机ID不能为空!")
	private String machineBackupsId; // 备份矿机
	@NotBlank(message = "哈希值不能为空!")
	private String fileHash; // 需要备份的文件hash
	private String type; // 0：备份文件hash 1：根目录hash

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMachineStatusId() {
		return machineStatusId;
	}

	public void setMachineStatusId(String machineStatusId) {
		this.machineStatusId = machineStatusId;
	}

	public String getMachineId() {
		return machineId;
	}

	public void setMachineId(String machineId) {
		this.machineId = machineId;
	}

	public String getMachineBackupsId() {
		return machineBackupsId;
	}

	public void setMachineBackupsId(String machineBackupsId) {
		this.machineBackupsId = machineBackupsId;
	}

	public String getMachineBackupsId1() {
		return machineBackupsId1;
	}

	public void setMachineBackupsId1(String machineBackupsId1) {
		this.machineBackupsId1 = machineBackupsId1;
	}

	public String getMachineBackupsId2() {
		return machineBackupsId2;
	}

	public void setMachineBackupsId2(String machineBackupsId2) {
		this.machineBackupsId2 = machineBackupsId2;
	}

	public String getFileHash() {
		return fileHash;
	}

	public void setFileHash(String fileHash) {
		this.fileHash = fileHash;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getCreateDatetime() {
		return createDatetime;
	}

	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	public Date getLastUpdateDatetime() {
		return lastUpdateDatetime;
	}

	public void setLastUpdateDatetime(Date lastUpdateDatetime) {
		this.lastUpdateDatetime = lastUpdateDatetime;
	}

	public Integer getBackupCount() {
		return backupCount;
	}

	public void setBackupCount(Integer backupCount) {
		this.backupCount = backupCount;
	}

}
